<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-saleOrder-chargeBack"
			th:object="${saleOrder}">
			<input id="orderId" name="orderId" type="hidden" th:field="*{orderId}" />
			<div class="form-group">
				<label class="col-sm-3 control-label ">订单编号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="saleorderno"
						id="saleorderno" th:field="*{saleorderno}" readonly />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">退单备注(必填)：</label>
				<div class="col-sm-8">
					<textarea name="remark" type="text" id="remark" class="form-control"></textarea>
				</div>
			</div>

		</form>
	</div>
	<div th:include="include::footer"></div>
	
	<script type="text/javascript">
	     
	
		$("#form-saleOrder-chargeBack").validate({
			rules:{
				remark:{
					required:true,
					
				}
				
			},
			messages: {
		       
		    }
		});

		function submitHandler() {
	        if ($.validate.form()) {
	        	 $.operate.save("/order/chargeBack", $('#form-saleOrder-chargeBack').serialize());
	        }
	    }

	</script>
</body>
</html>
